package jvm;

import java.lang.ref.PhantomReference;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

public class ReferenceTest {
    public static void main(String[] args) {
        String strong = new String("fhuawofh");
        SoftReference<String> soft = new SoftReference<>("soft");
        WeakReference<String> weak = new WeakReference<>("weak");
        PhantomReference<String> phant = new PhantomReference<>("phant", null);
        System.gc();
        System.out.println("*****testing*****");
    }
}
